<script setup>
import {ref} from "vue"
import {CloseBold} from "@element-plus/icons-vue";

const userid = ref(1)
</script>

<template>
	<div class="text-msg">
		<div class="msg-text">
			<p class="name"><span>刚刚浏览的服务</span> <el-icon class="close"><CloseBold /></el-icon></p>
			<div class="info">
				<img src="@/assets/recommending-img.png" alt="">
				<div class="info-text">
					<p class="goods-name">UI/UX/视觉品牌设计作品集辅导作品集重塑/作品集优化/作品集优化</p>
					<p class="send">
						<span class="price"><span>¥</span>12000</span>
						<span class="btn">发送服务</span>
					</p>
				</div>
			</div>
		</div>
	</div>
</template>

<style scoped lang="scss">
.text-msg{
	display: flex;
	justify-content: center;
	margin: 0 auto 26px;
  max-width: 700px;
}
.msg-text{
	width: 90%;
	background: #FFFFFF;
	box-shadow: 0px 0px 16px 0px rgba(11,13,18,0.06);
	border-radius: 12px 12px 12px 12px;
	border: 1px solid rgba(25,30,40,0.08);
	padding: 12px 16px;
	.name{
		font-weight: bold;
		color: #191E28;
		margin-bottom: 12px;
		display: flex;
		align-items: center;
		span{
			flex: 1;
		}
		.close{
			color: rgba(25,30,40,0.32);
			width: 24px;
			height: 24px;
			cursor: pointer;
			&:hover{
				color: rgba(25,30,40,0.64);
			}
		}
	}
}
.info{
	display: flex;
	align-items: center;
	img{
		width: 120px;
		height: 76px;
		margin-right: 12px;
		border-radius: 8px;
	}
	.info-text{
		.goods-name{
			font-size: 15px;
			color: #191E28;
			line-height: 24px;
			font-weight: bold;
			text-overflow: ellipsis;
			overflow: hidden;
			white-space: nowrap;
			max-width: 450px;
			margin-bottom: 20px;
		}
		.send{
			display: flex;
			align-items: center;
			.price{
				flex: 1;
				color: #FF4F4F;
				font-size: 22px;
				font-weight: bold;
				span{
					font-size: 14px;
				}
			}
			.btn{
				width: 80px;
				height: 32px;
				background: #1DBF73;
				border-radius: 8px 8px 8px 8px;
				text-align: center;
				line-height: 32px;
				color: #fff;
				cursor: pointer;
			}
		}
	}
}
</style>